package com.litchi.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created by palad on 2016/5/6.
 */

@Controller
@RequestMapping("/")
public class IndexController {
    @RequestMapping
    public String getIndexPage() {
        return "index";
    }

    @RequestMapping("/trains/layout")
    public String getTrainPartialPage(ModelMap modelMap) {
        return "trains/layout";
    }

    @RequestMapping("/lottery/layout")
    public String getLotteryPartialPage(ModelMap modelMap) {
        return "lottery/layout";
    }
}
